<?php /* Smarty version Smarty-3.1.14, created on 2014-12-11 15:16:15
         compiled from "..\templates\products\list_comparison.tpl" */ ?>
<?php /*%%SmartyHeaderCode:204548952cfb49921-45102723%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ccb39f979e471703af6e6d9089bee42c0e4d9b6e' => 
    array (
      0 => '..\\templates\\products\\list_comparison.tpl',
      1 => 1415991584,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '204548952cfb49921-45102723',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'value' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_548952cfc177d0_79211060',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_548952cfc177d0_79211060')) {function content_548952cfc177d0_79211060($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'C:\\wamp\\www\\shop_baby\\libraries\\smarty\\plugins\\modifier.date_format.php';
?>  <div id="confirm">
    <div class="checkout-heading checkout5">So Sánh Sản Phẩm</div>
    <div class="checkout-content" id="checkout4" style="display: block; ">
      <div class="checkout-product">
      <?php if (isset($_SESSION['product_comparison'])){?>
        <table style="width:100px;float:left;height:100px">
        <tbody>
                <tr ><td class="name">Tên sản phẩm</td></tr>
                <tr class="tr-comparsion"><td class="image">Hình ảnh</td></tr>
                <tr ><td class="model">Giá</td></tr>
                <tr ><td class="quantity">Kích thước</td></tr>
                <tr ><td class="price">Thương hiệu</td></tr>
                <tr class="tr-comparsion-review"><td class="total">Tổng đánh giá</td></tr>
                <tr class="tr-comparsion"><td class="name">Mô tả</td></tr>
                <tr style="height:37px;"><td class="name">Chức năng</td></tr>
        </tbody>
        </table>
        
        <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
 $_from = $_SESSION['product_comparison']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
$_smarty_tpl->tpl_vars['value']->_loop = true;
?>
        <form action="/products/delete_comparison.php" method="post">
      <table style="width:200px;float:left">
                <tr class="tr1-comparsion"><td class="name"><?php echo $_smarty_tpl->tpl_vars['value']->value['name'];?>
</td></tr>
                <tr class="tr-comparsion"><td class="image"><img style="width:100px;line-height:100px;height:100px" src="/upload/product/<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['value']->value['day_time'],'%m-%Y');?>
/<?php echo $_smarty_tpl->tpl_vars['value']->value['image'];?>
" /></td></tr>
                <tr><td class="model"><?php echo $_smarty_tpl->tpl_vars['value']->value['price_new'];?>
</td></tr>
                <tr><td class="quantity"><?php echo $_smarty_tpl->tpl_vars['value']->value['size'];?>
</td></tr>
                <tr><td class="price"><?php echo $_smarty_tpl->tpl_vars['value']->value['material'];?>
</td></tr>
                <tr><td class="total"><div class="review" ><div class="stars1" style="width:<?php echo $_smarty_tpl->tpl_vars['value']->value['percent'];?>
%;position:relative;left:35px;"><span style="text-align:center"></span></div></td></tr>
                <tr class="tr-comparsion"><td class="name"><?php echo $_smarty_tpl->tpl_vars['value']->value['description'];?>
</td></tr>
                <tr ><td ><a class="button" href="/xoa-so-sanh/<?php echo $_smarty_tpl->tpl_vars['value']->value['id'];?>
">Xóa</a></td></tr>
        </table>
        </form>
        <?php } ?>
        <?php }else{ ?>
            <div><p style="text-align:center;">Xin lỗi giỏ hàng của bạn chưa có sản phẩm nào so sánh</p></div>
            <div><p style="text-align:center;">Mời bạn quay lại trang chủ tiếp tục lựa chọn so sánh của mình</p></div>
            <div><p style="text-align:center;"><a href="/">Trang Chủ</a></p></div>
        <?php }?>
         
      </div>
    </div>
  </div><?php }} ?>